﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PasswordRecovery.ascx.cs"
    Inherits="Front_UserControl_PasswordRecovery" %>
<style type="text/css">
    .Invalid
    {
        background: #FAF1F2 url(Images/error.jpg) no-repeat 10px 10px;
        border: 2px solid #C95A55;
        padding: 10px 20px 20px 55px;
        color: #C95A55;
        font-weight: bold;
        margin: 10px 0;
        text-align: left;
        margin-left: 95px;
    }
</style>

<script type="text/javascript">
    function PassRecoverValidate() {
        var txtEmail = document.getElementById('<%= txtEmail.ClientID %>').value;
        var EmailLabel = document.getElementById('<%= EmailLabel.ClientID %>');
        var Errcolor = "red";
        var mycolor = "black";
        var ErrorString = "";

        if (txtEmail == '') {
            EmailLabel.style.color = Errcolor;
            ErrorString = "Error";

        }
        else
            EmailLabel.style.color = mycolor;


        var filter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
        if (!filter.test(txtEmail)) {
            ErrorString = "Error";
            EmailLabel.style.color = Errcolor;
        }
        else
            EmailLabel.style.color = mycolor;


        if (ErrorString != "") {
            return false;
        }
        return true;
    }
</script>

<div class="sign_signup">
    <span><strong style="color: #000; font-family: Arial; font-size: 14pt">Reset Password</strong><strong
        style="color: #000; font-size: 14pt;"> or </strong></span><span><a href="SignUp.aspx"
            style="font-size: 14pt;">Sign Up</a></span>
</div>
<table width="100%">
    <tr>
        <td>
            <hr />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="EmailLabel" runat="server" Text="Email:"></asp:Label>
            <br />
            <br />
        </td>
    </tr>
    <tr>
        <td>
            <asp:TextBox ID="txtEmail" runat="server" Text="" Width="300px"></asp:TextBox><br />
            <br />
        </td>
    </tr>
    <tr>
        <td>
            Enter your email address and we'll email you a link to reset your password.
            <br />
            <br />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Button ID="PayButton" runat="server" CausesValidation="true" CssClass="genericButton140"
                Text="Reset Password" Font-Size="11pt" Font-Names="Arial" Width="140px" OnClick="PayButton_Click"
                ValidationGroup="Passrecovery" OnClientClick="return PassRecoverValidate();" />&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="lnkbtnCancel" runat="server" Font-Bold="True" Text="Cancel" ForeColor="#52A400"
                OnClick="lnkbtnCancel_Click" CausesValidation="false" />
        </td>
    </tr>
</table>
